/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.unioeste.cc.vm;

/**
 *
 * @author diego
 */
public class Mux {
    int input1,input0;
    int output;
    int signal;

    public int getInput0() {
        return input0;
    }

    public void setInput0(int input0) {
        this.input0 = input0;
    }

    public int getInput1() {
        return input1;
    }

    public void setInput1(int input1) {
        this.input1 = input1;
    }

    public int getOutput() {
        return output;
    }

    public void setOutput(int output) {
        this.output = output;
    }

    public int getSignal() {
        return signal;
    }

    public void setSignal(int signal) {
        this.signal = signal;
    }
    
    public void selectOutput(){
        if(signal==0){
            output = input0;
        }
        else{
            output = input1;
        }
    }
  
}
